package com.lzh.mybatisdemo.hutool.date;


import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;

import java.util.Date;
import java.util.TimeZone;

/**
 * @author LiuZiHao
 * @date 创建时间:2023年03月07日 11:16:19
 */
public class DateUtilsTest {
    public static void main(String[] args) {
        String dateStr = "2023-03-07 11:16:31";
        DateTime date = DateUtil.date();
        String now = DateUtil.now()+"秒";
        DateTime dateTime = new DateTime();
        DateTime.setUseJdkToStringStyle(true);
        System.out.println("parse = " + dateTime.toString());
    }
}
